package com.thon.entity.user;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class LetterView{

	private Integer id;

	private Integer userId;
	private String userName;
	private String userRole;
	private String userAttachment;

	private Integer friendId;
	private String friendName;
	private String friendRole;
	private String friendAttachment;

	private String content;
	private Date createDate;

	private Integer isRead;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAttachment() {
		return userAttachment;
	}

	public void setUserAttachment(String userAttachment) {
		this.userAttachment = userAttachment;
	}

	public Integer getFriendId() {
		return friendId;
	}

	public void setFriendId(Integer friendId) {
		this.friendId = friendId;
	}

	public String getFriendName() {
		return friendName;
	}

	public void setFriendName(String friendName) {
		this.friendName = friendName;
	}

	public String getFriendAttachment() {
		return friendAttachment;
	}

	public void setFriendAttachmentId(String friendAttachment) {
		this.friendAttachment = friendAttachment;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public String getUserRole() {
		return userRole;
	}

	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}

	public String getFriendRole() {
		return friendRole;
	}

	public void setFriendRole(String friendRole) {
		this.friendRole = friendRole;
	}
	

}
